Class: models/Node

models/Node

new models/Node()

Graph中的节点。
Source:

Extends

  • Backbone.Model

Members

(static) community :Community

在Community中,保存所在Community的引用。
Type:
  • Community
Source:

(static) id :string

后端分配的节点id
Type:
  • string
Source:

(static) name :string

姓名属性
Type:
  • string
Source:

Methods

getCorrespondingCommunity() → {*|undefined}

在Community模式下,获得所属的Community对象。
Source:
Returns:
所属的Community对象。如果不属于任何一个Community则返回undefined。
Type
* | undefined